package Xsxkxt;

public class Student extends p {
    String lesson;
    public Student(int code, String name,String sex) {
        super(code,name,sex);
        this.code = code;
        this.name = name;
        this.sex = sex;
    }

    public String toString(){
        return "学生信息:  姓名：" + name + " 学号：" + code + " 性别：" + sex ;
    }
    void tuike() {
        lesson=null;
    }
    void delete() {
        if(lesson== null);{
            System.out.println("学生目前未选课");}

    }
}

